﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
    >


    <!-- BORDERS ===================================================================================-->
    <Style x:Key="FactoryMainWindowBorder" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource ApplicationBackgroundBrush}"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="0,0,0,0"/>
        <Setter Property="CornerRadius" Value="5,5,0,0"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
        <Setter Property="BorderBrush" Value="Black"/>        
    </Style>
    
    <Style x:Key="FactoryWindowBorder" TargetType="Border" BasedOn="{StaticResource FactoryMainWindowBorder}"> 
        <Setter Property="CornerRadius" Value="5,5,5,5"/>
        <Setter Property="Margin" Value="0,0,5,5"/>
        <Setter Property="Border.BitmapEffect">
            <Setter.Value>
                <DropShadowBitmapEffect Color="Black" Direction="300" Opacity="0.3" ShadowDepth="3" Softness="0.1" PresentationOptions:Freeze="True" />
            </Setter.Value>
        </Setter>
    </Style>


        
        
            

    <Style x:Key="AlertBorder" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource AlertBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource AlertBrush}"/>
        <Setter Property="CornerRadius" Value="3"/>
        <Setter Property="Margin" Value="0,4,0,4"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="TextBlock.Foreground" Value="{StaticResource AlertBrush}"/>        
        <Setter Property="Padding" Value="3"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
    </Style>


    <Style x:Key="FactoryWindowContentBorder" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource GradientSilverTubeBrush}"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="CornerRadius" Value="0,0,5,5"/>

        <!--<Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Color="#dbedcb" Offset="0" />
                    <GradientStop Color="White" Offset="0.2" />
                    <GradientStop Color="White" Offset="0.8" />
                    <GradientStop Color="#dbedcb" Offset="1" />
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>-->
        
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="0,0,0,0"/>        
        
        <Setter Property="BorderThickness" Value="0,0,0,0"/>
    </Style>

    <Style x:Key="FactoryWindowTitleBorder" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource WindowTitleBarBrush}"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="0,0,0,0"/>
        <Setter Property="CornerRadius" Value="5,5,0,0"/>
        <Setter Property="BorderBrush" Value="Gray"/>
        <Setter Property="BorderThickness" Value="0,0,0,1"/>
        <Setter Property="Padding" Value="8,4,2,6"/>
        <!--<Setter Property="BitmapEffect">
            <Setter.Value>            
                <BevelBitmapEffect BevelWidth="1" Relief="0.1" Smoothness="0.5" LightAngle="90" PresentationOptions:Freeze="True"  />            
            </Setter.Value>
        </Setter>-->
        <!--<Setter Property="BitmapEffect">
            <Setter.Value>            
                <DropShadowBitmapEffect Direction="270" Color="Gray" ShadowDepth="1" PresentationOptions:Freeze="True"  />            
            </Setter.Value>
        </Setter>-->
    </Style>
    
    <Style x:Key="FactoryWindowButtonBar" TargetType="Border">
        <Setter Property="Height" Value="35"/>
        <Setter Property="Background" Value="{StaticResource LightStrongBrush}" />
        <!--<Setter Property="Background" Value="{StaticResource SelectedItemBrush}"/>-->
        <Setter Property="CornerRadius" Value="0,0,3,3"/>
        <Setter Property="BorderBrush" Value="{StaticResource NormalBrush}"/>
        <Setter Property="BorderThickness" Value="0,1,0,0"/>        
        <Setter Property="Padding" Value="5,0,5,0"/>
    </Style>

    <Style x:Key="FactoryWindowErrorButtonBar" TargetType="Border" BasedOn="{StaticResource FactoryWindowButtonBar}">
        <Setter Property="Background" Value="{StaticResource PaleOrangeBrush}"/>        
        <Setter Property="BorderBrush" Value="{StaticResource ErrorBackgroundBrush}"/>        
    </Style>


    <Style x:Key="ListBoxItemBorder" TargetType="Border">
        <Setter Property="BorderThickness" Value="0,0,0,1"/>
        <Setter Property="BorderBrush" Value="{StaticResource WaterMarkBrush}"/>
    </Style>


    <Style x:Key="HighLightBorderBase" TargetType="Border">
        <Setter Property="Margin" Value="2,2,2,2"/>
        <Setter Property="CornerRadius" Value="4,4,4,4"/>          
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2,2,2,2"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>       
    </Style>

    <Style x:Key="HighLightBorder" TargetType="Border" >        
        <Setter Property="Margin" Value="2,2,2,2"/>
        <Setter Property="CornerRadius" Value="4,4,4,4"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
        <Style.Triggers>            
            <Trigger Property="IsMouseOver" Value="False">
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="{StaticResource HighLightBrush}"/>
                <Setter Property="BorderBrush" Value="{StaticResource HighLightBorderBrush}"/>
                <Setter Property="TextBlock.Foreground" Value="{StaticResource DarkTextBrush}"/>
            </Trigger>
            

        </Style.Triggers>
    </Style>

    <Style x:Key="HighLightAlertBorder" TargetType="Border" >
        <Setter Property="Background" Value="{StaticResource HighLightAlertBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource HighLightAlertBorderBrush}"/>


        <Setter Property="Margin" Value="2,2,2,2"/>
        <Setter Property="CornerRadius" Value="4,4,4,4"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2,2,2,2"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="False">
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="{StaticResource HighLightAlertBrush}"/>
                <Setter Property="BorderBrush" Value="{StaticResource HighLightAlertBorderBrush}"/>
                <Setter Property="TextBlock.Foreground">
                    <Setter.Value>
                        <SolidColorBrush Color="{StaticResource DarkColor}"/>
                    </Setter.Value>
                </Setter>
            </Trigger>

        </Style.Triggers>
    </Style>

    <Style x:Key="TaskSelectorHighLightBorder" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource HighLightBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource HighLightBorderBrush}"/>
        <Setter Property="Margin" Value="0,2,0,2"/>
        <Setter Property="CornerRadius" Value="4,4,4,4"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Padding" Value="2,2,2,2"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
      

        <Setter Property="TextBlock.VerticalAlignment" Value="Top"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="False">
                <Setter Property="TextBlock.Foreground">
                    <Setter.Value>
                        <SolidColorBrush Color="White"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <!--Setter Property="TextBlock.BitmapEffect">
                    <Setter.Value>
                        <DropShadowBitmapEffect Color="Black" Direction="330" Opacity="1" ShadowDepth="2" Softness="0" />
                    </Setter.Value>
                </Setter-->
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="TextBlock.Foreground">
                    <Setter.Value>
                        <SolidColorBrush Color="{StaticResource DarkColor}"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="Background" Value="{StaticResource HighLightBrush}"/>
                <Setter Property="BorderBrush" Value="{StaticResource HighLightBorderBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

   

    
    
    <Style x:Key="Header_1Border" TargetType="Border">
        <Setter Property="Background" Value="{StaticResource LightStrongBrush}" />
        <Setter Property="CornerRadius" Value="5,5,0,0" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Padding" Value="4,6,4,6" />
    </Style>
    
    <Style x:Key="RoundBorder" TargetType="Border">
        <Setter Property="CornerRadius" Value="5"/>
        <Setter Property="Padding" Value="1"/>
        <Setter Property="Background" Value="White"/>        
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="LightGray"/>
        <Setter Property="Margin" Value="3,0,0,0"/>
    </Style>


</ResourceDictionary>